import i18n from '../../i18n/i18n'
export const tableOption = {
  border: true,
  index: false,
  indexLabel: i18n.t('number'),
  stripe: true,
  selection: true,
  menuAlign: 'center',
  menuWidth: 350,
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: i18n.t('product.prodName'),
    prop: 'prodName'
  }, {
    label: i18n.t('temp.proImg'),
    prop: 'pic',
    type: 'upload',
    width: 150,
    listType: 'picture-img'

  }, {
    label: i18n.t('live.marketPrice'),
    sortable: true,
    prop: 'oriPrice'
  }, {
    label: i18n.t('live.salesPrice'),
    sortable: true,
    prop: 'price'
  }, {
    label: i18n.t('product.totalStocks'),
    sortable: true,
    prop: 'totalStocks'
  }, {
    width: 150,
    label: i18n.t('product.prodType'),
    prop: 'isCompose',
    search: true,
    slot: true,
    searchSpan: 4,
    type: 'select',
    dicData: [
      {
        label: i18n.t('product.ordProd'),
        value: 0
      }, {
        label: i18n.t('product.comProd'),
        value: 1
      }
    ]
  }, {
    width: 150,
    label: i18n.t('product.status'),
    sortable: true,
    prop: 'status',
    search: true,
    slot: true,
    searchSpan: 4,
    type: 'select',
    dicData: [
      {
        label: i18n.t('publics.metLowerShelf'),
        value: 0
      }, {
        label: i18n.t('publics.UpperShelf'),
        value: 1
      }, {
        label: i18n.t('product.violatingGoods'),
        value: 2
      }, {
        label: i18n.t('product.pendingReview'),
        value: 3
      }
    ]
  }, {
    label: i18n.t('product.delType'),
    slot: true,
    prop: 'deliveryMode',
    search: true,
    searchSpan: 4,
    type: 'select',
    dicData: [
      {
        label: i18n.t('product.userPickUp'),
        value: 0
      }, {
        label: i18n.t('product.shopDelivery'),
        value: 1
      }, {
        label: i18n.t('product.sameCityDelivery'),
        value: 2
      }
    ]
  }, {
    width: 100,
    label: i18n.t('product.isTop'),
    slot: true,
    prop: 'isTop',
    search: true,
    type: 'select',
    dicData: [
      {
        label: i18n.t('publics.no'),
        value: 0
      }, {
        label: i18n.t('publics.yes'),
        value: 1
      }
    ]
  }, {
    label: i18n.t('product.seq'),
    sortable: 'custom',
    prop: 'seq'
  } ]
}
